<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/textlink/addtextlink" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>内链接添加</h1>
    </div>
    <div class="form">
      <form method="POST" action="{:URL('cms/TextLink/doAddTextlink')}" id="J_form" name="detail_form" enctype="multipart/form-data">
        <input type="hidden" name="link_id" value="{$textlink['link_id']}">
        <dl class="kv" id="dl_link_text">
          <dt>
                                          关键字：
          </dt>
          <dd>
            <input name="text" id="text" type="text" value="{$textlink['text']}" class="input-text" required style="width:200px">
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv" id="dl_des">
          <dt>
                                              链接地址：
          </dt>
          <dd>
            <input  type="text" name="url" id="url" value="{$textlink['url']}" class="input-text" required style="width:200px" />
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>    
          <dl class="kv" id="dl_des">
          <dt>
                                             所属站点：
          </dt>
          <dd>
           <select name="siteid" id="siteid">
              <option value="0">请选择</option>
              <volist name="sitelist" id="slist">
                   <option value="{$slist['siteid']}" <eq name="slist.siteid" value="$textlink['siteid']">selected</eq>>{$slist['name']}</option>
              </volist>
          </select>
          </dd>
        </dl>    
        <div class="actions">
          <input type="submit" class="btn btn-y" value="保存">
          <input type="button" class="btn btn-n" value="返回" onclick="javascript:location.href='{:URL('cms/TextLink/textLink')}'">
        </div>
      </form>
    </div>
  </div>
</body>

</html>